//
//  ProjectDeviceViewController.m
//  Qihuo
//
//  Created by Cheng Qi on 13-12-10.
//  Copyright (c) 2013年 Vencoo. All rights reserved.
//

#import "ProjectDeviceViewController.h"
@interface ProjectDeviceViewController ()
{
    BOOL hasResrved;
}
@end

@implementation ProjectDeviceViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}
- (void)viewDidLoad
{
    self.title =@"工程设备巡检";
    [super viewDidLoad];
    [self initData];
    [self changeTableView];
    self.sendUrl = addProjectDevice;
    for (NSDictionary *dic in self.allShowDataArr)
    {
        [self.floorNames addObject:[dic valueForKey:@"floorName"]];
        [self.floorIds addObject:[dic valueForKey:@"floorId"]];
        
        [self.sendFloorDatas addObject:@""];
        [self.xunJianCellInfos addObject:@{@"hidden":@"1",@"floorId":[dic valueForKey:@"floorId"] }];
    }
    [self showUIWithArray:self.allShowDataArr andFloorId:@"1"];
    NSIndexPath *path =[NSIndexPath indexPathForRow:0 inSection:0];
    [self.myTableView  selectRowAtIndexPath:path animated:YES scrollPosition:UITableViewScrollPositionTop];
    [self.view bringSubviewToFront:self.blackStopV];
    [self.view bringSubviewToFront:self.blackGroundV];
}

#pragma mark-Resource
- (void)showUIWithArray:(NSArray *)array andFloorId:(NSString *)floorId
{
    [self clearAll];
    self.floorIdQuanju = floorId;
    hasResrved = 0;
    id receiveFloorObj = [self.sendFloorDatas objectAtIndex:[self.floorIds indexOfObjectss:self.floorIdQuanju]];
    if (![receiveFloorObj isKindOfClass:[NSString class]])
    {
        hasResrved = 1;
        self.sendCheckDatas = [receiveFloorObj objectForKey:@"checkData"];
    }
    for (int i = 0; i < array.count; i ++)
    {
        NSDictionary *dataDic = [array objectAtIndex:i];
        NSString *floorid = [dataDic valueForKey:@"floorId"];
        NSString *type = [dataDic valueForKey:@"type"];
        NSArray *checkArray = [dataDic objectForKey:@"checkArr"];
        if ([floorId isEqualToString:floorid])
        {
            int k = 0 ;
            for (NSString *checkName in checkArray)
            {
                UILabel *checkNameLb = [UILabel new];
                checkNameLb.text = checkName;
                checkNameLb.font = [UIFont systemFontOfSize:25];
                CGSize mySz = [checkNameLb.text sizeWithFont:checkNameLb.font constrainedToSize:CGSizeMake(MAXFLOAT, 40)];
                checkNameLb.frame = CGRectMake(10, [[self.controlWillClears lastObject]frame].origin.y + [self.controlWillClears.lastObject frame].size.height + interval111, mySz.width, mySz.height);
                [self.backScrollV addSubview:checkNameLb];
                [self.checkNameLbs addObject:checkNameLb];
                [self.controlWillClears addObject:checkNameLb];
                k ++;
                if (!hasResrved)
                {
                    [self.sendCheckDatas addObject:@{@"checkId": [NSString stringWithFormat:@"%i",k],@"result":@""}];
                }
                switch ([type integerValue])
                {
                    case 1:
                    {
                        UITextField *tf = [[UITextField alloc]initWithFrame:CGRectMake(checkNameLb.frame.origin.x + checkNameLb.frame.size.width + interval111, checkNameLb.frame.origin.y, 300, mySz.height)];
                        tf.delegate = self;
                        tf.keyboardAppearance = UIKeyboardAppearanceAlert;
                        tf.keyboardType = UIKeyboardTypeNumberPad;
                        if (hasResrved)
                        {
                            tf.text = [[self.sendCheckDatas objectAtIndex:k-1]valueForKey:@"result"];
                        }
                        UIImage *inputImage = [UIImage imageNamed:@"输入框底"];
                        tf.background = inputImage;
                        tf.tag = 100 + k;
                        [self.controlWillClears addObject:tf];
                        [self.backScrollV addSubview:tf];
                    }
                        break;
                    case 2:
                    {
                        if (hasResrved)
                        {
                            [self addSingleSelect:@[@"正常",@"不正常"] andResult:[[self.sendCheckDatas objectAtIndex:k-1]valueForKey:@"result"]];
                        }
                        else
                        {
                            [self addSingleSelect:@[@"正常",@"不正常"] andResult:@"3"];
                        }
                    }
                        break;
                    case 3:
                    {
                        if (hasResrved)
                        {
                            [self addSingleSelect:@[@"启",@"停"] andResult:[[self.sendCheckDatas objectAtIndex:k-1]valueForKey:@"result"]];
                        }
                        else
                        {
                            [self addSingleSelect:@[@"启",@"停"] andResult:@"3"];
                        }
                    }
                        break;
                    case 4:
                    {
                        if (hasResrved)
                        {
                            [self addSingleSelect:@[@"高",@"中",@"低"] andResult:[[self.sendCheckDatas objectAtIndex:k-1]valueForKey:@"result"]];
                        }
                        else
                        {
                            [self addSingleSelect:@[@"高",@"中",@"低"]andResult:@"3"];
                        }
                    }
                        break;
                    case 10:
                    {
//                        ShouZiView *myView = [[ShouZiView alloc]initWithFrame:CGRectMake(0, 0, 500, 100)];
//                        [self.backScrollV addSubview:myView];
//                        [self.controlWillClears addObject:myView];
                        if (hasResrved)
                        {
                            if (k == 1)
                            {
                                [self addSingleSelect:@[@"高",@"中",@"低"] andResult:[[self.sendCheckDatas objectAtIndex:k-1]valueForKey:@"result"]];
                            }
                            else
                            {
                                [self addSingleSelect:@[@"手",@"自"] andResult:[[self.sendCheckDatas objectAtIndex:k-1]valueForKey:@"result"]];
                            }
                        }
                        else
                        {
                            if (k == 1)
                            {
                                [self addSingleSelect:@[@"高",@"中",@"低"] andResult:@"3"];
                            }
                            else
                            {
                                [self addSingleSelect:@[@"手",@"自"] andResult:@"3"];
                            }
                        }
                    }
                        break;
                    default:
                        break;
                }
            }
        }
    }
    self.commentTv = [[UITextView alloc]init];
}
//- (void)addThreeSingleSelect:(NSArray*)options andResult:(NSString *)receiveString
//{
//    NSMutableArray *btnArr = [NSMutableArray array];
//    for (int j =0; j<options.count; j++)
//    {
//        UIButton *selectBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//        [selectBtn setImage:self.roundUnselect forState:UIControlStateNormal];
//        if ([[NSString stringWithFormat:@"%d",j] isEqualToString: receiveString] && j == 0)
//        {
//            [selectBtn setImage:self.roundSelect forState:UIControlStateNormal];
//        }
//        else if(([[receiveString stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding] isEqualToString:@"无异常"] && j == 0) ||([[receiveString stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding] isEqualToString:@"异常"] && j == 1))
//        {
//            [selectBtn setImage:self.roundSelect forState:UIControlStateNormal];
//        }
//        else if (![receiveString isEqualToString:@"0"]&&![receiveString isEqualToString:@"1"]&&![receiveString isEqualToString:@"3"])
//        {
//            if (j == 1) {
//                [selectBtn setImage:self.roundSelect forState:UIControlStateNormal];
//            }
//        }
//        [selectBtn addTarget:self action:@selector(selectOptions:) forControlEvents:UIControlEventTouchUpInside];
//        selectBtn.frame = CGRectMake(150 + (self.backScrollV.frame.size.width - 150)/options.count*j, [[self.controlWillClears lastObject]frame].origin.y  /*+([[_controlWillClears lastObject]frame].size.height + 10)*/, self.roundSelect.size.width, self.roundSelect.size.height);
//        [self.backScrollV addSubview:selectBtn];
//        [self.imageViews addObject:selectBtn];
//        [self.controlWillClears addObject:selectBtn];
//        [btnArr addObject:selectBtn];
//        
//        UILabel *abnormLb = [UILabel new];
//        NSString *abnormStr = [options objectAtIndex:j];
//        abnormLb.font = [UIFont systemFontOfSize:26];
//        abnormLb.text = abnormStr;
//        CGSize mySize = [abnormLb.text sizeWithFont:abnormLb.font constrainedToSize:CGSizeMake(MAXFLOAT, 40)];
//        abnormLb.frame = CGRectMake(selectBtn.frame.origin.x + selectBtn.frame.size.width, selectBtn.frame.origin.y, mySize.width, mySize.height);
//        [self.backScrollV addSubview:abnormLb];
//        [self.childLabels addObject:abnormLb];
//        [self.controlWillClears addObject:abnormLb];
//    }
//    [self.selectBtnArr addObject:btnArr];
//    [self.seleBtnData addObject:@""];
//}

- (void)selectOptions:(id)sender//工程部
{
    UIButton *btn = (UIButton*)sender;
    for (int i = 0;i<self.selectBtnArr.count;i++)
    {
        NSArray *btnArr = [self.selectBtnArr objectAtIndex:i];
        if ([btnArr containsObject:btn])
        {
            for (int j = 0;j<btnArr.count;j++)
            {
                UIButton *seleBtn = [btnArr objectAtIndex:j];
                [seleBtn setImage:self.roundUnselect forState:UIControlStateNormal];
                if (btn == [btnArr objectAtIndex:j])
                {
                    [seleBtn setImage:self.roundSelect forState:UIControlStateNormal];
                    UILabel *textLb = (UILabel *)[self.backScrollV viewWithTag:1000+j];
                    [self.seleBtnData replaceObjectAtIndex:i withObject:[textLb.text stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
                    
                    NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"%i",i+1],@"checkId",[self.seleBtnData objectAtIndex:i],@"result",nil];
                    [self.sendCheckDatas replaceObjectAtIndex:i withObject:dic];
                }
            }
        }
    }
}

-(void)changeTableView
{
    UILabel *weatherLabel =[[UILabel alloc]initWithFrame:CGRectMake(10,74,110, 50)];
    weatherLabel.text=@"天气:";
    [weatherLabel setTextColor:[UIColor whiteColor]];
    weatherLabel.backgroundColor =[UIColor clearColor];
    [weatherLabel setFont:[UIFont systemFontOfSize:30]];
    
    UITextField *weatherText =[[UITextField alloc]initWithFrame:CGRectMake(120,74, 150, 50)];
    weatherText.textColor = [UIColor whiteColor];
    weatherText.tag = 1001;
    [weatherText setBorderStyle:UITextBorderStyleLine];
    [self.view addSubview:weatherLabel];
    [weatherLabel release];
    [self.view addSubview:weatherText];
    [weatherText release];
    
    UILabel *temperLabel =[[UILabel alloc]initWithFrame:CGRectMake(330,74,130, 50)];
    [temperLabel setTextColor:[UIColor whiteColor]];
    temperLabel.text=@"室外温度:";
    [temperLabel setFont:[UIFont systemFontOfSize:30]];
    UITextField *temperText =[[UITextField alloc]initWithFrame:CGRectMake(470,74, 150, 50)];
    temperText.tag = 1002;
    temperText.textColor = [UIColor whiteColor];
    [temperText setBorderStyle:UITextBorderStyleLine];
    temperLabel.backgroundColor =[UIColor clearColor];
    [self.view addSubview:temperLabel];
    [temperLabel release];
    [self.view addSubview:temperText];
    [temperText release];
    
    UILabel *humidityLabel =[[UILabel alloc]initWithFrame:CGRectMake(690,74,130, 50)];
    [humidityLabel setFont:[UIFont systemFontOfSize:30]];
    [humidityLabel setTextColor:[UIColor whiteColor]];
    humidityLabel.text=@"相对湿度:";
    UITextField *humidityText =[[UITextField alloc]initWithFrame:CGRectMake(840,74, 150, 50)];
    humidityText.tag = 1003;
    humidityText.textColor = [UIColor whiteColor];
    humidityLabel.backgroundColor =[UIColor clearColor];
    [humidityText setBorderStyle:UITextBorderStyleLine];
    [self.view addSubview:humidityLabel];
    [humidityLabel release];
    [self.view addSubview:humidityText];
    [humidityText release];
    
    UIImage *blackImage = [UIImage imageNamed:@"黑底"];
    self.myTableView.frame=CGRectMake(interval111/2, 128, self.leftTableImage.size.width, screenHeight - blackImage.size.height - 128);
    self.whiteImageView.frame=CGRectMake(self.myTableView.frame.origin.x + self.myTableView.frame.size.width, self.myTableView.frame.origin.y, scrennWidth - (self.myTableView.frame.origin.x)*2 -self.myTableView.frame.size.width, self.myTableView.frame.size.height);
    self.backScrollV.frame =CGRectMake(10, 10, self.whiteImageView.frame.size.width - 20, self.whiteImageView.frame.size.height - 20);
    NSLog(@"%f %f",self.backScrollV.frame.size.width,self.backScrollV.frame.size.height);
}

#pragma mark--UITableViewDelegate
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [self showUIWithArray:self.allShowDataArr andFloorId:[NSString stringWithFormat:@"%d",indexPath.row + 1]];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    [super tableView:tableView numberOfRowsInSection:section];
    if (tableView==self.myTableView) {
          return [self.allShowDataArr count];
    }else
        return 0;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    [super tableView:tableView  cellForRowAtIndexPath:indexPath];
    if (tableView==self.myTableView) {
        self.mycell.textLabel.text =[self.floorNames objectAtIndex:indexPath.row];
        return self.mycell;
    }else
        return nil;
}
- (void)textFieldDidEndEditing:(UITextField *)textField
{
    switch (textField.tag)
    {
        case 1001:
            self.weatherForecast = textField.text;
            break;
        case 1002:
            self.temperature = textField.text;
            break;
        case 1003:
            self.humidity = textField.text;
            break;
            
        default:
        {
            [self.sendCheckDatas replaceObjectAtIndex:textField.tag - 101 withObject:@{@"checkId": [NSString stringWithFormat:@"%i",textField.tag -100],@"result":[textField.text stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]}];
        }
            break;
    }
}
- (void)initData
{
    hasResrved = 0;
    NSArray *tempArr = @[@"温度",@"湿度"];
    NSArray *tempretureAndPresure = @[@"温度",@"压力"];
    NSArray *_bengs = @[@"1#泵",@"2#泵"];
    NSArray *_beng2s = @[@"1#泵进压力",@"1#泵出压力",@"2#泵进压力",@"2#泵出压力"];
    NSArray *pressureAndTempArr = @[@"1次水进压力",@"1次水出压力",@"1次水进温度",@"1次水出温度",@"2次水进压力",@"2次水出压力",@"2次水进温度",@"2次水出温度"];
    NSArray *yasuoji = @[@"回风温度",@"湿度",@"压缩机电流 1#",@"压缩机电流 2#",@"风机电流"];
    NSArray *tas = @[@"1#塔",@"2#塔",@"3#塔",@"4#塔",@"5#塔"];
    NSDictionary *oneDic = @{@"floorId": @"1",@"floorName":@"2F信息机房",@"checkArr":tempArr,@"type":@"1"};
    NSDictionary *twoDic = @{@"floorId": @"2",@"floorName":@"4F计算机房",@"checkArr":tempArr,@"type":@"1"};
    NSDictionary *threeDic = @{@"floorId": @"3",@"floorName":@"4F辅助机房",@"checkArr":tempArr,@"type":@"1"};
    NSDictionary *fourDic = @{@"floorId": @"4",@"floorName":@"5F电话机房",@"checkArr":tempArr,@"type":@"1"};
    NSDictionary *fiveDic = @{@"floorId": @"5",@"floorName":@"7F低区电梯机房",@"checkArr":tempArr,@"type":@"1"};
    NSDictionary *sixDic = @{@"floorId": @"6",@"floorName":@"裙房8F电梯机房",@"checkArr":tempArr,@"type":@"1"};
    NSDictionary *sevenDic = @{@"floorId": @"7",@"floorName":@"9FUPS",@"checkArr":tempArr,@"type":@"1"};
    NSDictionary *eightDic = @{@"floorId": @"8",@"floorName":@"25F中区电梯机房",@"checkArr":tempArr,@"type":@"1"};
    NSDictionary *nineDic = @{@"floorId": @"9",@"floorName":@"27F卫星机房",@"checkArr":tempArr,@"type":@"1"};
    NSDictionary *tenDic = @{@"floorId": @"10",@"floorName":@"28F卫星机房",@"checkArr":tempArr,@"type":@"1"};
    NSDictionary *elevenDic = @{@"floorId": @"11",@"floorName":@"39F高区电梯机房",@"checkArr":tempArr,@"type":@"1"};
    NSDictionary *twelveDic = @{@"floorId": @"12",@"floorName":@"27F热水循环泵",@"checkArr":_bengs,@"type":@"3"};
    NSDictionary *Dic13 = @{@"floorId": @"13",@"floorName":@"28F高区采暖泵",@"checkArr":_beng2s,@"type":@"1"};
    NSDictionary *Dic14 = @{@"floorId": @"14",@"floorName":@"29F板式交换器",@"checkArr":pressureAndTempArr,@"type":@"1"};
    NSDictionary *Dic15 = @{@"floorId": @"15",@"floorName":@"30F膨胀水箱水表读数",@"checkArr":@[@"------"],@"type":@"2"};
    NSDictionary *Dic16 = @{@"floorId": @"16",@"floorName":@"32F热水循环泵",@"checkArr":_bengs,@"type":@"3"};
    NSDictionary *Dic17 = @{@"floorId": @"17",@"floorName":@"38F热交换器(高区)",@"checkArr":tempretureAndPresure,@"type":@"1"};
    NSDictionary *Dic18 = @{@"floorId": @"18",@"floorName":@"38F热交换器(低区)",@"checkArr":tempretureAndPresure,@"type":@"1"};
    NSDictionary *Dic19 = @{@"floorId": @"19",@"floorName":@"38F冷却塔及辅助设备",@"checkArr":tas,@"type":@"3"};
    NSDictionary *Dic20 = @{@"floorId": @"20",@"floorName":@"40F膨胀水箱表读数",@"checkArr":@[@"冷",@"热"],@"type":@"2"};
    NSDictionary *one21Dic = @{@"floorId": @"21",@"floorName":@"40F净水设备",@"checkArr":@[@"水位",@"水表"],@"type":@"1"};
    NSDictionary *one22Dic = @{@"floorId": @"22",@"floorName":@"41F消防(稳压泵)",@"checkArr":_bengs,@"type":@"2"};
    NSDictionary *one23Dic = @{@"floorId": @"23",@"floorName":@"41F消防(气压罐)",@"checkArr":@[@"设定压力",@"实际压力"],@"type":@"1"};
    NSDictionary *one24Dic = @{@"floorId": @"24",@"floorName":@"41F喷淋(稳压泵)",@"checkArr":_bengs,@"type":@"2"};
    NSDictionary *one25Dic = @{@"floorId": @"25",@"floorName":@"41F喷淋(气压罐)",@"checkArr":@[@"设定压力",@"实际压力"],@"type":@"1"};
    NSDictionary *one26Dic = @{@"floorId": @"26",@"floorName":@"41F水箱",@"checkArr":@[@"水位"],@"type":@"4"};
    NSDictionary *one27Dic = @{@"floorId": @"27",@"floorName":@"低区办公及卫生间排风",@"checkArr":@[@"启/停"],@"type":@"1"};
    NSDictionary *one28Dic = @{@"floorId": @"28",@"floorName":@"17F湿式报警器",@"checkArr":@[@"压力"],@"type":@"1"};
    NSDictionary *one29Dic = @{@"floorId": @"29",@"floorName":@"高区办公及卫生间排风",@"checkArr":@[@"启/停"],@"type":@"1"};
    NSDictionary *one30Dic = @{@"floorId": @"30",@"floorName":@"裙房、十轴卫生间排风",@"checkArr":@[@"启/停"],@"type":@"1"};
    NSDictionary *one31Dic = @{@"floorId": @"31",@"floorName":@"生活清水泵",@"checkArr":_bengs,@"type":@"2"};
//    NSDictionary *one32Dic = @{@"floorId": @"32",@"floorName":@"机械过滤器",@"checkArr":_bengs,@"type":@"2"};
    NSDictionary *one33Dic = @{@"floorId": @"32",@"floorName":@"原水泵",@"checkArr":_bengs,@"type":@"2"};
    NSDictionary *one34Dic = @{@"floorId": @"33",@"floorName":@"反冲泵",@"checkArr":@[@"1#泵"],@"type":@"2"};
    NSDictionary *one35Dic = @{@"floorId": @"34",@"floorName":@"蓄水池",@"checkArr":@[@"原水池",@"清水池"],@"type":@"2"};
    NSDictionary *one36Dic = @{@"floorId": @"35",@"floorName":@"消防泵",@"checkArr":@[@"手",@"自"],@"type":@"2"};
    NSDictionary *one37Dic = @{@"floorId": @"36",@"floorName":@"喷淋泵",@"checkArr":@[@"手",@"自"],@"type":@"2"};
    NSDictionary *one38Dic = @{@"floorId": @"37",@"floorName":@"热水循环泵",@"checkArr":_bengs,@"type":@"3"};
    NSDictionary *one39Dic = @{@"floorId": @"38",@"floorName":@"湿式报警压力",@"checkArr":@[@"------"],@"type":@"1"};
    NSDictionary *one40Dic = @{@"floorId": @"39",@"floorName":@"食堂热交换器",@"checkArr":tempretureAndPresure, @"type":@"1"};
    NSDictionary *one41Dic = @{@"floorId": @"40",@"floorName":@"浴室热交换器",@"checkArr":tempretureAndPresure,@"type":@"1"};
    NSDictionary *one42Dic = @{@"floorId": @"41",@"floorName":@"车库集水井",@"checkArr":@[@"水位",@"手/自"],@"type":@"10"};
    NSDictionary *one43Dic = @{@"floorId": @"42",@"floorName":@"核心简集水井",@"checkArr":@[@"水位",@"手/自"],@"type":@"10"};
    NSDictionary *one44Dic = @{@"floorId": @"43",@"floorName":@"凝结水箱",@"checkArr":@[@"水位",@"手/自"],@"type":@"10"};
    NSDictionary *one45Dic = @{@"floorId": @"44",@"floorName":@"B3F污水处理房",@"checkArr":@[@"水位",@"手/自"],@"type":@"10"};
    NSDictionary *one46Dic = @{@"floorId": @"45",@"floorName":@"7F污水排风",@"checkArr":@[@"启/停"],@"type":@"1"};
    NSDictionary *one47Dic = @{@"floorId": @"46",@"floorName":@"38F平台污水排风",@"checkArr":@[@"启/停"],@"type":@"1"};
    NSDictionary *one48Dic = @{@"floorId": @"47",@"floorName":@"41F设备水表读数",@"checkArr":@[@"38F热交换机",@"高区办公室供水",@"总卫生间供水"],@"type":@"1"};
    NSDictionary *one49Dic = @{@"floorId": @"48",@"floorName":@"40F设备水表读数",@"checkArr":@[@"冷水膨胀箱",@"热水膨胀箱",@"饮用水"],@"type":@"1"};
    NSDictionary *one50Dic = @{@"floorId": @"49",@"floorName":@"38F",@"checkArr":@[@"冷却塔补水"],@"type":@"1"};
    NSDictionary *one51Dic = @{@"floorId": @"50",@"floorName":@"30F",@"checkArr":@[@"热水膨胀水箱"],@"type":@"1"};
    NSDictionary *one52Dic = @{@"floorId": @"51",@"floorName":@"B1F车库UPS",@"checkArr":@[@"设备状态"],@"type":@"2"};
    NSDictionary *one53Dic = @{@"floorId": @"52",@"floorName":@"1F中控UPS",@"checkArr":@[@"温度",@"设备状态"],@"type":@"1"};
    NSDictionary *one54Dic = @{@"floorId": @"53",@"floorName":@"2F技术公司UPS",@"checkArr":@[@"------"],@"type":@"2"};
    NSDictionary *one55Dic = @{@"floorId": @"54",@"floorName":@"4F主机房120KV-1",@"checkArr":@[@"------"],@"type":@"2"};
    NSDictionary *one56Dic = @{@"floorId": @"55",@"floorName":@"4F主机房120KV-2",@"checkArr":@[@"------"],@"type":@"2"};
    NSDictionary *one57Dic = @{@"floorId": @"56",@"floorName":@"4F主机房300KV",@"checkArr":@[@"------"],@"type":@"2"};
    NSDictionary *one58Dic = @{@"floorId": @"57",@"floorName":@"4F辅助机房",@"checkArr":@[@"------"],@"type":@"2"};
    NSDictionary *one59Dic = @{@"floorId": @"58",@"floorName":@"9F网端电源机房",@"checkArr":@[@"------"],@"type":@"2"};
    NSDictionary *one60Dic = @{@"floorId": @"59",@"floorName":@"27F卫星机房",@"checkArr":@[@"27F卫星机房"],@"type":@"2"};
    NSDictionary *one61Dic = @{@"floorId": @"60",@"floorName":@"28F卫星机房",@"checkArr":@[@"28F卫星机房"],@"type":@"2"};
    NSDictionary *one62Dic = @{@"floorId": @"61",@"floorName":@"AH4A",@"checkArr":yasuoji,@"type":@"1"};
    NSDictionary *one63Dic = @{@"floorId": @"62",@"floorName":@"AH4B",@"checkArr":yasuoji,@"type":@"1"};
    NSDictionary *one64Dic = @{@"floorId": @"63",@"floorName":@"CM80AF",@"checkArr":@[@"回风温度",@"湿度"],@"type":@"1"};
    NSDictionary *one65Dic = @{@"floorId": @"64",@"floorName":@"28CM30AF",@"checkArr":@[@"回风温度",@"湿度"],@"type":@"1"};
    NSDictionary *one66Dic = @{@"floorId": @"65",@"floorName":@"28P1030FA1",@"checkArr":@[@"回风温度",@"湿度"],@"type":@"1"};
    NSDictionary *one67Dic = @{@"floorId": @"66",@"floorName":@"28P1030FA2",@"checkArr":@[@"回风温度",@"湿度"],@"type":@"1"};
//    NSDictionary *one68Dic = @{@"floorId": @"68",@"floorName":@"喷水池运行情况",@"checkArr":@[@"喷水池运行情况"],@"type":@"1"};
    NSDictionary *one69Dic = @{@"floorId": @"67",@"floorName":@"6F减压阀",@"checkArr":@[@"1#",@"2#",@"3#"],@"type":@"1"};
    NSDictionary *one70Dic = @{@"floorId": @"68",@"floorName":@"19F减压阀",@"checkArr":@[@"1#",@"2#",@"3#"],@"type":@"1"};
    NSDictionary *one71Dic = @{@"floorId": @"69",@"floorName":@"B1F消防结合器",@"checkArr":@[@"1#",@"2#",@"3#"],@"type":@"2"};
    NSDictionary *one72Dic = @{@"floorId": @"70",@"floorName":@"B1F喷淋接合器",@"checkArr":@[@"1#",@"2#"],@"type":@"2"};

    self.allShowDataArr = @[oneDic,twoDic,threeDic,fourDic,fiveDic,sixDic,sevenDic,eightDic,nineDic,tenDic,elevenDic,twelveDic,Dic13,Dic14,Dic15,Dic16,Dic17,Dic18,Dic19,Dic20,one21Dic,one22Dic,one23Dic,one24Dic,one25Dic,one26Dic,one27Dic,one28Dic,one29Dic,one30Dic,one31Dic,one33Dic,one34Dic,one35Dic,one36Dic,one37Dic,one38Dic,one39Dic,one40Dic,one41Dic,one42Dic,one43Dic,one44Dic,one45Dic,one46Dic,one47Dic,one48Dic,one49Dic,one50Dic,one51Dic,one52Dic,one53Dic,one54Dic,one55Dic,one56Dic,one57Dic,one58Dic,one59Dic,one60Dic,one61Dic,one62Dic,one63Dic,one64Dic,one65Dic,one66Dic,one67Dic,one69Dic,one70Dic,one71Dic,one72Dic];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
@end
